package com.gitee.feizns.explore.data_structure.linked_list.singly.reverse_between;

/**
 * @author feizns
 * @since 2019/10/9
 */
public class ListNode {

    int val;

    ListNode next;

    public void print() {
        ListNode tmp = this;
        while ( tmp != null ) {
            System.out.print(tmp.val + ",");
            tmp = tmp.next;
        }
        System.out.println();
    }

    public ListNode(int val) {
        this.val = val;
    }
}
